﻿using System.Collections.Generic;

namespace ControleRepresentante.Logic.Models
{
    public abstract class UsuariosHolder : DetailsHolder
    {
        private readonly IList<User> m_Users;

        protected UsuariosHolder()
        {
            m_Users = new List<User>();
        }

        public virtual IEnumerable<User> Users { get { return m_Users; } }

        protected internal virtual void AddUser(User user)
        {
            m_Users.Add(user);
        }

        protected internal virtual void RemoveUser(User user)
        {
            m_Users.Remove(user);
        }

    }
}